home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 26 (Anniversary Edition)
/
Volume 26 [Anniversary Edition] - JOGO DISK .iso
/
Fight
/
battleinmegaville.swf
/
scripts
/
frame_6
/
DoAction.as
Wrap
Text File
|
2006-09-05
|
534b
|
30 lines
if(Key.isDown(38) && !onUp && deflect == -7)
{
gir.gotoAndPlay("deflect");
deflect = 2;
}
if(gir._x > girx - 40 && Key.isDown(37) && !onLeft)
{
gir._x -= 40;
}
if(gir._x < girx + 40 && Key.isDown(39) && !onRight)
{
gir._x += 40;
}
onLeft = Key.isDown(37);
onRight = Key.isDown(39);
onUp = Key.isDown(38);
if(deflect > -7)
{
deflect--;
}
if(pts > hi)
{
hi = pts;
}
pc = Math.round(100 * getBytesLoaded() / getBytesTotal()) + "%";
if(_framesloaded == _totalframes)
{
pc = "COMPLETE";
}